def getTransactionMock(mox):
    transaction = mox.CreateMockAnything()
    transaction.__enter__()
    transaction.__exit__(None, None, None)
    return transaction    